<%= form_for @document, :url => review_save_document_path(@client_doc.id), :method => :post ,:html => {:multipart => true} do |f|%>
  <div>
    <%= f.label "Completed" %>
    <%= radio_button_tag  "doc_status" , "completed",  :id => "completed" %>
  </div>
  
  <div>
    <%= f.label "Review Needed" %>
    <%= radio_button_tag  "doc_status", "review", false, :id => "review" %>
  </div>

  <div style="display:none" id="comment_div">
    <%= f.label "Comment" %>
    <%= text_area_tag  "comment" %>
  
  </div>
  <br/>
  <%= submit_tag "Submit" %>
<% end %>

<script>
  $('#review').click(function(){
    $('#comment_div').css('display','block');
  });
    $('#doc_status_completed').click(function(){
    $('#comment_div').css('display','none');
  });
</script>
